<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$sitename} - 密码重置</title>
{include file="header"/}
</head>
<body>
<!-- // sign-header end -->
<div class="layout" id="sign-content">
		<div class="ui-box ui-qire sign-focus" id="psw-box">
		<div class="logo"><a href="{$siteurl}" title="{$sitename}"></a></div>
			<div class="ui-title fn-clear">
			<span>已有{$sitename}帐号？请<a href="{:zanpian_user_url('user/login/index')}">点击登录</a></span>
				<h2>密码重置</h2>
			</div>
			<div class="ui-cnt fn-clear">
            	<form id="findform"  method="post" onsubmit="return false;">
						<div class="ui-form sign-primary" style="width:968px">
							<div class="ui-form-item fn-clear">
								<label class="ui-label w100">
									&nbsp;
								</label>
								<p class="qire-notice" style="width:600px">
									友情提示：如果您在修改密码时有任何问题,请在<a href="{$url_gbshow}">留言版</a>留言，管理员会协助您找回密码！
								</p>
							</div>
							<div class="ui-form-item fn-clear">
								<label for="pwd" class="ui-label w100">
									设置密码：
								</label>
								<input type="password" id="pwd" name="password" maxlength="20" class="ui-input w220"
								value="" />
								<p class="ui-message" id="pwdTip">
									6-16个字符
								</p>
							</div>
							<div class="ui-form-item fn-clear">
								<label for="verifypass" class="ui-label w100">
									重复密码：
								</label>
								<input type="password" id="verifypass" name="repassword" maxlength="20"
								class="ui-input w220" value="" />
								<p class="ui-message" id="verifypassTip">
									请再一次输入密码
								</p>
							</div>

						<div class="ui-form-item fn-clear" id="validate-code">
														<label for="validate" class="ui-label w100">
									验证码：
								</label>
							 <div class="ui-form-block w120">
								<input type="text" id="validate" name="validate" maxlength="10" class="ui-input w110" value=""><p class="validate-code-btn">看不清? <a href="javascript:void()" id="verimgbut">换一张</a>
									</p>
							</div>
						<img src="{:zp_url('user/validate/verify','',false,false)}" id="verimg" alt="点击图片更换验证码"title="点击图片更换验证码"><p class="onShow ui-message" id="validateTip">输入上图字母</p>
						</div>		
							<div class="ui-form-item fn-clear">
								<label class="ui-label w100">
									&nbsp;
								</label>
								<input type="submit" id="register" class="ui-button w220" value="修改密码"/>
							</div>
						</div>
						<!-- // ui-form#sign-primary end -->
					</form>
				<!-- // ui-form End -->
                
			</div>
		</div>
		<!-- // sign-box#pswbox end -->
<script type="text/javascript">
			$.formValidator.initConfig({
				formID:"findform",
				debug:false,
				submitOnce:false,
				onSuccess:function(){
					//alert('dddddddddddddd');
					$("#findform").qiresub({
						curobj:$("#register"),
						txt:'数据提交中,请稍后...',
						onsucc:function(result){
							$.hidediv(result);
							setTimeout("$.refresh('{:zanpian_user_url('user/login/index')}')",1500);
						}
					}).post({
						url:window.location.href
						});
					return false;
				},
				submitAfterAjaxPrompt : '有数据正在异步验证，请稍等...'
			});
				
						// Password
			$("#pwd").formValidator({
				onShow:"请输入密码",
				onFocus:"至少6个长度",
				onCorrect:"密码输入正确",
				onError:'密码在6-16位'
			})
			.inputValidator({
				min:6,
				empty:{
					leftEmpty:false,
					rightEmpty:false,
					emptyError:"密码两边不能有空符号"
				},onError:"密码在6-16位"
			});
 
	// Verifypassword
			$("#verifypass").formValidator({
				onShow:"输再次输入密码",
				onFocus:"至少6个长度",
				onCorrect:"密码一致"
			})
			.inputValidator({
				min:6,
				empty:{
					leftEmpty:false,
					rightEmpty:false,
					emptyError:"重复密码两边不能有空符号"
				},onError:"重复密码不能为空,请确认"
			})
			.compareValidator({
				desID:"pwd",
				operateor:"=",
				onError:"2次密码不一致,请确认"
			});
	$("#validate").formValidator({
	    onShow : "输入上图字母",
	    onFocus : "输入上图字母",
	    onCorrect : "验证码正确"
       }).inputValidator({
	      min : 4,
	      max : 4,
	      onError : "验证码错误"
       }).regexValidator({
	      regExp : "^[A-Za-z0-9]+$",
	      onError : "你输入的格式不正确"
       }).ajaxValidator({
	      dataType : "json",
	      async : true,
	      cache : false,
	      url : "{:zp_url('user/validate/index','',false,false)}-imgcode-",
	      success : function(data) {
		  if (parseInt(data.status) > 0) {
			return true;
		} else {
			return false;
		}
	},
	onError : "验证码不正确",
	onWait : "正在对验证码不正确，请稍候..."
});
				$("#verimgbut,#verimg").click(function(){
				$("#verimg").attr('src',"{:zp_url('user/validate/verify','',false,false)}-" + Math.random());

			});

		</script>
</div>
{include file="footer"/}
<!-- // sign-content end -->
</body>
</html>